package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 供应商组织信息对象 erp_supplier_organization
 *
 * @author cxl
 * @date 2024-06-16
 */
@TableName ("erp_supplier_organization")
@ApiModel (value = "供应商组织信息", description = "供应商组织信息")
@Data
public class SupplierOrganizationEntity {

        /** 主键id */
        @TableId (type = IdType.INPUT)
        private String id;

        /** 供应商id */
        @ApiModelProperty ("供应商id")
        @TableField ("supplier_id")
        @Excel (name = "供应商id")
        private String supplierId;

        /** 地点编码 */
        @ApiModelProperty ("地点编码")
        @TableField ("location_code")
        @Excel (name = "地点编码")
        private String locationCode;

        /** 地点名称 */
        @ApiModelProperty ("地点名称")
        @TableField ("location_name")
        @Excel (name = "地点名称")
        private String locationName;

        /** 联系人id */
        @ApiModelProperty ("联系人id")
        @TableField ("contracts_id")
        @Excel (name = "联系人id")
        private String contractsId;

        /** 通讯地址 */
        @ApiModelProperty ("通讯地址")
        @TableField ("mailing_address")
        @Excel (name = "通讯地址")
        private String mailingAddress;

        /** 是否启用 */
        @ApiModelProperty ("是否启用")
        @TableField ("is_enable")
        @Excel (name = "是否启用")
        private Boolean isEnable;

        /** 电话 */
        @ApiModelProperty ("电话")
        @TableField ("tel")
        @Excel (name = "电话")
        private String tel;

        /** 手机 */
        @ApiModelProperty ("手机")
        @TableField ("phone")
        @Excel (name = "手机")
        private String phone;

        /** 传真 */
        @ApiModelProperty ("传真")
        @TableField ("fax")
        @Excel (name = "传真")
        private String fax;

        /** 电子邮箱 */
        @ApiModelProperty ("电子邮箱")
        @TableField ("email")
        @Excel (name = "电子邮箱")
        private String email;

        /** 备注 */
        @ApiModelProperty ("备注")
        @TableField ("remark")
        @Excel (name = "备注")
        private String remark;

        /** 默认供货地址 */
        @ApiModelProperty ("默认供货地址")
        @TableField ("is_default_supply")
        @Excel (name = "默认供货地址")
        private Boolean isDefaultSupply;

        /** 默认开票地址 */
        @ApiModelProperty ("默认开票地址")
        @TableField ("is_default_invoicing")
        @Excel (name = "默认开票地址")
        private Boolean isDefaultInvoicing;

        /** 默认收款地址 */
        @ApiModelProperty ("默认收款地址")
        @TableField ("is_default_payment")
        @Excel (name = "默认收款地址")
        private Boolean isDefaultPayment;

        /** 创建人Id */
        @ApiModelProperty ("创建人Id")
        @TableField ("user_id")
        @Excel (name = "创建人Id")
        private String userId;

        @ApiModelProperty ("创建时间")
        @TableField ("create_time")
        @JsonFormat ( pattern = "yyyy-MM-dd HH:mm:ss" )
        private Date createTime;

        /** 更新时间 */
        @ApiModelProperty ("更新时间")
        @TableField ("change_time")
        @JsonFormat (pattern = "yyyy-MM-dd")
        @Excel (name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
        private Date changeTime;

        @ApiModelProperty ("逻辑删除")
        @TableField ("is_used")
        @Excel (name = "更新时间")
        private Integer isUsed;

}
